import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import 'lib-flexible'
import "babel-polyfill"
import 'es6-promise/auto'
import VueLazyload from "vue-lazyload"; //图片懒加载
//渐进式加载图片
import progressive from 'progressive-image/dist/vue'; // 渐进式
import 'progressive-image/dist/index.css';//样式

import store from './store'
// import '../build/util'

// import ElementUI from 'element-ui';  //引入Element ui
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI); //使用 ElementUI

import './assets/css/mycss.css'
import axios from 'axios';

Vue.prototype.axios = axios;
// axios.defaults.withCredentials = true
axios.defaults.baseURL = "http://www.pghhh.top"
// axios.defaults.baseURL = "/"

Vue.use(axios);

//图片懒加载
Vue.use(VueLazyload,{
  // loading: './assets/image/loading.gif',
  loading: require('../src/assets/image/loading.gif'),
  error: require('../src/assets/image/error.svg'),
});

//渐进式加载图片
Vue.use(progressive, {
  removePreview: true,
  scale: true
})

//音乐播放器
import APlayer from '@moefe/vue-aplayer'
Vue.use(APlayer, {
  defaultCover: 'https://github.com/u3u.png',
  productionTip: true,
});

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
